<template>
	<!-- 选择结果页 -->
	<view>
		<view class="resutlShell">
			<image class="resultIcon" src="/static/image/resultIcon.png"></image>
			<view class="resultTextShell">
				<view class="resultBigText">更换成功</view>
				<view class="resultSmallText">请及时更换柜内商品</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				deviceId: ''
			}
		},
		// onHide() {
		// 	console.log('dd')
		// 	uni.reLaunch({
		// 		url: "pages/setRemined/currentDevice/currentDevice?id=" + this.deviceId
		// 	})
		// },
		onLoad(option) {
			// console.log(option)
			this.deviceId = option.id
		},
		
		onUnload() {
			console.log(this.deviceId)
			uni.redirectTo({
				url: "pages/setRemined/currentDevice/currentDevice?id=" + this.deviceId
			})
		},
		methods: {
			// 点击返回
			goBack() {
				uni.navigateBack({
					delta: 2
				})
			}
		}
	}
</script>

<style scoped>
	.resutlShell {
		width: 80%;
		margin: 0 auto;
		position: relative;
		top: 100rpx;
	}

	.resultIcon {
		width: 400rpx;
		height: 400rpx;
		display: block;
		margin: 0 auto;
	}

	.resultTextShell {
		width: 100%;
		margin: 80rpx auto;
	}

	.resultBigText,
	.resultSmallText {
		font-family: Source Han Sans CN;
		color: #000000;
		text-align: center;
	}

	.resultBigText {
		font-size: 32rpx;
		font-weight: 550;
	}

	.resultSmallText {
		font-size: 28rpx;
		font-weight: 400;
		margin-top: 30rpx;
	}
</style>
